home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'Qrctrls.pas' rev: 3.00
-
- #ifndef QrctrlsHPP
- #define QrctrlsHPP
- #include <qr2const.hpp>
- #include <quickrpt.hpp>
- #include <qrprntr.hpp>
- #include <RichEdit.hpp>
- #include <ComCtrls.hpp>
- #include <DBTables.hpp>
- #include <Db.hpp>
- #include <Printers.hpp>
- #include <Dialogs.hpp>
- #include <ExtCtrls.hpp>
- #include <Forms.hpp>
- #include <Buttons.hpp>
- #include <Graphics.hpp>
- #include <SysUtils.hpp>
- #include <StdCtrls.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Windows.hpp>
- #include <Messages.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Qrctrls
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (__closure *TQRLabelOnPrintEvent)(System::TObject* sender, System::AnsiString
- &Value);
-
- class DELPHICLASS TQRCustomLabel;
- class PASCALIMPLEMENTATION TQRCustomLabel : public Quickrpt::TQRPrintable
- {
- typedef Quickrpt::TQRPrintable inherited;
-
- private:
- bool DoneFormat;
- bool FAutoSize;
- bool FAutoStretch;
- System::AnsiString FCaption;
- int FFontSize;
- Classes::TStrings* FFormattedLines;
- Classes::TStrings* FLines;
- TQRLabelOnPrintEvent FOnPrint;
- bool FWordWrap;
- int MaxWidth;
- bool UpdatingBounds;
- System::AnsiString __fastcall GetCaption(void);
- void __fastcall SetAutoStretch(bool Value);
- void __fastcall SetCaption(System::AnsiString Value);
- void __fastcall SetLines(Classes::TStrings* Value);
- void __fastcall SetWordWrap(bool Value);
- void __fastcall PaintToCanvas(Graphics::TCanvas* aCanvas, const Windows::TRect &aRect, bool CanExpand
- , int LineHeight);
- void __fastcall PrintToCanvas(Graphics::TCanvas* aCanvas, Extended aLeft, Extended aTop, Extended aWidth
- , Extended aHeight, Extended LineHeight, bool CanExpand);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
-
- protected:
- virtual void __fastcall FormatLines(void);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall SetName(const System::AnsiString Value);
- virtual void __fastcall SetParent(Controls::TWinControl* AParent);
- __property TQRLabelOnPrintEvent OnPrint = {read=FOnPrint, write=FOnPrint};
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual void __fastcall ReadFontSize(Classes::TReader* Reader);
- virtual void __fastcall WriteFontSize(Classes::TWriter* Writer);
- virtual void __fastcall ReadVisible(Classes::TReader* Reader);
- virtual void __fastcall WriteDummy(Classes::TWriter* Writer);
- virtual void __fastcall Paint(void);
- virtual void __fastcall Prepare(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
- virtual void __fastcall SetAlignment(Classes::TAlignment Value);
-
- public:
- __fastcall virtual TQRCustomLabel(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRCustomLabel(void);
- __property Alignment ;
- __property bool AutoSize = {read=FAutoSize, write=FAutoSize, nodefault};
- __property bool AutoStretch = {read=FAutoStretch, write=SetAutoStretch, nodefault};
- __property System::AnsiString Caption = {read=GetCaption, write=SetCaption, stored=true};
- __property Color ;
- __property Font ;
- __property Classes::TStrings* Lines = {read=FLines, write=SetLines};
- __property bool WordWrap = {read=FWordWrap, write=SetWordWrap, nodefault};
- public:
- /* TWinControl.CreateParented */ __fastcall TQRCustomLabel(HWND ParentWindow) : Quickrpt::TQRPrintable(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRLabel;
- class PASCALIMPLEMENTATION TQRLabel : public Qrctrls::TQRCustomLabel
- {
- typedef Qrctrls::TQRCustomLabel inherited;
-
- __published:
- __property Alignment ;
- __property AlignToBand ;
- __property AutoSize ;
- __property AutoStretch ;
- __property Caption ;
- __property Color ;
- __property Font ;
- __property OnPrint ;
- __property ParentFont ;
- __property Transparent ;
- __property WordWrap ;
- public:
- /* TQRCustomLabel.Create */ __fastcall virtual TQRLabel(Classes::TComponent* AOwner) : Qrctrls::TQRCustomLabel(
- AOwner) { }
- /* TQRCustomLabel.Destroy */ __fastcall virtual ~TQRLabel(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRLabel(HWND ParentWindow) : Qrctrls::TQRCustomLabel(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS TQRMemo;
- class PASCALIMPLEMENTATION TQRMemo : public Qrctrls::TQRCustomLabel
- {
- typedef Qrctrls::TQRCustomLabel inherited;
-
- protected:
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual void __fastcall ReadTabStop(Classes::TReader* Reader);
- virtual void __fastcall WriteDummy2(Classes::TWriter* Writer);
-
- public:
- virtual void __fastcall Paint(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
-
- __published:
- __property Alignment ;
- __property AlignToBand ;
- __property AutoSize ;
- __property AutoStretch ;
- __property Color ;
- __property Font ;
- __property Lines ;
- __property ParentFont ;
- __property Transparent ;
- __property WordWrap ;
- public:
- /* TQRCustomLabel.Create */ __fastcall virtual TQRMemo(Classes::TComponent* AOwner) : Qrctrls::TQRCustomLabel(
- AOwner) { }
- /* TQRCustomLabel.Destroy */ __fastcall virtual ~TQRMemo(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRMemo(HWND ParentWindow) : Qrctrls::TQRCustomLabel(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS TQRDBText;
- class PASCALIMPLEMENTATION TQRDBText : public Qrctrls::TQRCustomLabel
- {
- typedef Qrctrls::TQRCustomLabel inherited;
-
- private:
- Db::TField* Field;
- int FieldNo;
- bool FieldOK;
- System::SmallString<30> DataSourceName;
- Db::TDataSet* FDataSet;
- System::AnsiString FDataField;
- System::AnsiString FMask;
- void __fastcall SetDataSet(Db::TDataSet* Value);
- void __fastcall SetDataField(System::AnsiString Value);
- void __fastcall SetMask(System::AnsiString Value);
-
- protected:
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- virtual void __fastcall Prepare(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
- virtual void __fastcall ReadValues(Classes::TReader* Reader);
- virtual void __fastcall Unprepare(void);
- virtual void __fastcall WriteValues(Classes::TWriter* Writer);
-
- public:
- __fastcall virtual TQRDBText(Classes::TComponent* AOwner);
-
- __published:
- __property Alignment ;
- __property AlignToBand ;
- __property AutoSize ;
- __property AutoStretch ;
- __property Color ;
- __property Db::TDataSet* DataSet = {read=FDataSet, write=SetDataSet};
- __property System::AnsiString DataField = {read=FDataField, write=SetDataField};
- __property Font ;
- __property System::AnsiString Mask = {read=FMask, write=SetMask};
- __property OnPrint ;
- __property ParentFont ;
- __property Transparent ;
- __property WordWrap ;
- public:
- /* TQRCustomLabel.Destroy */ __fastcall virtual ~TQRDBText(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRDBText(HWND ParentWindow) : Qrctrls::TQRCustomLabel(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRExpr;
- class PASCALIMPLEMENTATION TQRExpr : public Qrctrls::TQRCustomLabel
- {
- typedef Qrctrls::TQRCustomLabel inherited;
-
- private:
- Qrprntr::TQREvaluator* Evaluator;
- System::AnsiString FExpression;
- System::AnsiString FMask;
- Classes::TComponent* FMaster;
- bool FResetAfterPrint;
- Qrprntr::TQREvResult __fastcall GetValue(void);
- void __fastcall SetExpression(System::AnsiString Value);
- void __fastcall SetMask(System::AnsiString Value);
-
- protected:
- virtual void __fastcall Prepare(void);
- virtual void __fastcall Unprepare(void);
- virtual void __fastcall QRNotification(System::TObject* Sender, Quickrpt::TQRNotifyOperation Operation
- );
- virtual void __fastcall Print(int OfsX, int OfsY);
- void __fastcall SetMaster(Classes::TComponent* AComponent);
-
- public:
- __fastcall virtual TQRExpr(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRExpr(void);
- void __fastcall Reset(void);
- __property Qrprntr::TQREvResult Value = {read=GetValue};
-
- __published:
- __property Alignment ;
- __property AlignToBand ;
- __property AutoSize ;
- __property AutoStretch ;
- __property Font ;
- __property Color ;
- __property Classes::TComponent* Master = {read=FMaster, write=SetMaster};
- __property OnPrint ;
- __property ParentFont ;
- __property bool ResetAfterPrint = {read=FResetAfterPrint, write=FResetAfterPrint, nodefault};
- __property Transparent ;
- __property WordWrap ;
- __property System::AnsiString Expression = {read=FExpression, write=SetExpression};
- __property System::AnsiString Mask = {read=FMask, write=SetMask};
- public:
- /* TWinControl.CreateParented */ __fastcall TQRExpr(HWND ParentWindow) : Qrctrls::TQRCustomLabel(ParentWindow
- ) { }
-
- };
-
- enum TQRSysDataType { qrsTime, qrsDate, qrsDateTime, qrsPageNumber, qrsReportTitle, qrsDetailCount,
- qrsDetailNo };
-
- class DELPHICLASS TQRSysData;
- class PASCALIMPLEMENTATION TQRSysData : public Qrctrls::TQRCustomLabel
- {
- typedef Qrctrls::TQRCustomLabel inherited;
-
- private:
- TQRSysDataType FData;
- System::AnsiString FText;
- void __fastcall SetData(TQRSysDataType Value);
- HIDESBASE void __fastcall SetText(System::AnsiString Value);
- void __fastcall CreateCaption(void);
-
- protected:
- virtual void __fastcall Print(int OfsX, int OfsY);
-
- public:
- __fastcall virtual TQRSysData(Classes::TComponent* AOwner);
-
- __published:
- __property Alignment ;
- __property AlignToBand ;
- __property AutoSize ;
- __property Color ;
- __property TQRSysDataType Data = {read=FData, write=SetData, nodefault};
- __property Font ;
- __property OnPrint ;
- __property ParentFont ;
- __property System::AnsiString Text = {read=FText, write=SetText};
- __property Transparent ;
- public:
- /* TQRCustomLabel.Destroy */ __fastcall virtual ~TQRSysData(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRSysData(HWND ParentWindow) : Qrctrls::TQRCustomLabel(
- ParentWindow) { }
-
- };
-
- enum TQRShapeType { qrsRectangle, qrsCircle, qrsVertLine, qrsHorLine, qrsTopAndBottom, qrsRightAndLeft
- };
-
- class DELPHICLASS TQRShape;
- class PASCALIMPLEMENTATION TQRShape : public Quickrpt::TQRPrintable
- {
- typedef Quickrpt::TQRPrintable inherited;
-
- private:
- TQRShapeType FShape;
- Graphics::TBrush* FBrush;
- Graphics::TPen* FPen;
- void __fastcall SetBrush(Graphics::TBrush* Value);
- void __fastcall SetPen(Graphics::TPen* Value);
- void __fastcall SetShape(TQRShapeType Value);
-
- protected:
- virtual void __fastcall Paint(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
- void __fastcall StyleChanged(System::TObject* sender);
- virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
- virtual void __fastcall ReadVisible(Classes::TReader* Reader);
- virtual void __fastcall WriteDummy(Classes::TWriter* Writer);
-
- public:
- __fastcall virtual TQRShape(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRShape(void);
-
- __published:
- __property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush};
- __property Height ;
- __property Graphics::TPen* Pen = {read=FPen, write=SetPen};
- __property TQRShapeType Shape = {read=FShape, write=SetShape, nodefault};
- __property Width ;
- public:
- /* TWinControl.CreateParented */ __fastcall TQRShape(HWND ParentWindow) : Quickrpt::TQRPrintable(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS TQRImage;
- class PASCALIMPLEMENTATION TQRImage : public Quickrpt::TQRPrintable
- {
- typedef Quickrpt::TQRPrintable inherited;
-
- private:
- Graphics::TPicture* FPicture;
- bool FAutoSize;
- bool FStretch;
- bool FCenter;
- Graphics::TCanvas* __fastcall GetCanvas(void);
- void __fastcall PictureChanged(System::TObject* Sender);
- void __fastcall SetAutoSize(bool Value);
- void __fastcall SetCenter(bool Value);
- void __fastcall SetPicture(Graphics::TPicture* Value);
- void __fastcall SetStretch(bool Value);
-
- protected:
- DYNAMIC HPALETTE __fastcall GetPalette(void);
- virtual void __fastcall Paint(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
-
- public:
- __fastcall virtual TQRImage(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRImage(void);
- __property Graphics::TCanvas* Canvas = {read=GetCanvas};
-
- __published:
- __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
- __property bool Center = {read=FCenter, write=SetCenter, default=0};
- __property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture};
- __property bool Stretch = {read=FStretch, write=SetStretch, default=0};
- public:
- /* TWinControl.CreateParented */ __fastcall TQRImage(HWND ParentWindow) : Quickrpt::TQRPrintable(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS TQRDBImage;
- class PASCALIMPLEMENTATION TQRDBImage : public Quickrpt::TQRPrintable
- {
- typedef Quickrpt::TQRPrintable inherited;
-
- private:
- Db::TField* FField;
- Db::TDataSet* FDataSet;
- System::AnsiString FDataField;
- Graphics::TPicture* FPicture;
- bool FStretch;
- bool FCenter;
- bool FPictureLoaded;
- void __fastcall PictureChanged(System::TObject* Sender);
- void __fastcall SetCenter(bool Value);
- void __fastcall SetDataField(const System::AnsiString Value);
- void __fastcall SetDataSet(Db::TDataSet* Value);
- void __fastcall SetPicture(Graphics::TPicture* Value);
- void __fastcall SetStretch(bool Value);
-
- protected:
- DYNAMIC HPALETTE __fastcall GetPalette(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- virtual void __fastcall Paint(void);
- virtual void __fastcall Prepare(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
- virtual void __fastcall UnPrepare(void);
-
- public:
- __fastcall virtual TQRDBImage(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRDBImage(void);
- void __fastcall LoadPicture(void);
- __property Db::TField* Field = {read=FField};
- __property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture};
-
- __published:
- __property bool Center = {read=FCenter, write=SetCenter, default=1};
- __property System::AnsiString DataField = {read=FDataField, write=SetDataField};
- __property Db::TDataSet* DataSet = {read=FDataSet, write=SetDataSet};
- __property bool Stretch = {read=FStretch, write=SetStretch, default=0};
- public:
- /* TWinControl.CreateParented */ __fastcall TQRDBImage(HWND ParentWindow) : Quickrpt::TQRPrintable(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRRichEdit;
- class PASCALIMPLEMENTATION TQRRichEdit : public Comctrls::TCustomRichEdit
- {
- typedef Comctrls::TCustomRichEdit inherited;
-
- public:
- __property BorderStyle ;
- public:
- /* TCustomRichEdit.Create */ __fastcall virtual TQRRichEdit(Classes::TComponent* AOwner) : Comctrls::
- TCustomRichEdit(AOwner) { }
- /* TCustomRichEdit.Destroy */ __fastcall virtual ~TQRRichEdit(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRRichEdit(HWND ParentWindow) : Comctrls::TCustomRichEdit(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRCustomRichText;
- class PASCALIMPLEMENTATION TQRCustomRichText : public Quickrpt::TQRPrintable
- {
- typedef Quickrpt::TQRPrintable inherited;
-
- private:
- bool FAutoStretch;
- Comctrls::TRichEdit* FParentRichEdit;
- TQRRichEdit* FRichEdit;
- Classes::TAlignment __fastcall GetAlignment(void);
- Graphics::TColor __fastcall GetColor(void);
- Graphics::TFont* __fastcall GetFont(void);
- Classes::TStrings* __fastcall GetLines(void);
- virtual void __fastcall SetAlignment(Classes::TAlignment Value);
- HIDESBASE void __fastcall SetColor(Graphics::TColor Value);
- HIDESBASE void __fastcall SetFont(Graphics::TFont* Value);
- void __fastcall SetLines(Classes::TStrings* Value);
- void __fastcall SetParentRichEdit(Comctrls::TRichEdit* Value);
-
- protected:
- __property Classes::TStrings* Lines = {read=GetLines, write=SetLines};
- __property Comctrls::TRichEdit* ParentRichEdit = {read=FParentRichEdit, write=SetParentRichEdit};
- virtual void __fastcall Print(int OfsX, int OfsY);
- virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
-
- public:
- __fastcall virtual TQRCustomRichText(Classes::TComponent* AOwner);
- __fastcall virtual ~TQRCustomRichText(void);
-
- __published:
- __property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, nodefault};
- __property bool AutoStretch = {read=FAutoStretch, write=FAutoStretch, nodefault};
- __property Graphics::TColor Color = {read=GetColor, write=SetColor, nodefault};
- __property Graphics::TFont* Font = {read=GetFont, write=SetFont};
- public:
- /* TWinControl.CreateParented */ __fastcall TQRCustomRichText(HWND ParentWindow) : Quickrpt::TQRPrintable(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRRichText;
- class PASCALIMPLEMENTATION TQRRichText : public Qrctrls::TQRCustomRichText
- {
- typedef Qrctrls::TQRCustomRichText inherited;
-
- __published:
- __property Lines ;
- __property ParentRichEdit ;
- public:
- /* TQRCustomRichText.Create */ __fastcall virtual TQRRichText(Classes::TComponent* AOwner) : Qrctrls::
- TQRCustomRichText(AOwner) { }
- /* TQRCustomRichText.Destroy */ __fastcall virtual ~TQRRichText(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRRichText(HWND ParentWindow) : Qrctrls::TQRCustomRichText(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TQRDBRichText;
- class PASCALIMPLEMENTATION TQRDBRichText : public Qrctrls::TQRCustomRichText
- {
- typedef Qrctrls::TQRCustomRichText inherited;
-
- private:
- Db::TField* Field;
- System::AnsiString FDataField;
- Db::TDataSet* FDataSet;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SetDataSet(Db::TDataSet* Value);
- virtual void __fastcall Prepare(void);
- virtual void __fastcall Unprepare(void);
- virtual void __fastcall Print(int OfsX, int OfsY);
-
- __published:
- __property System::AnsiString DataField = {read=FDataField, write=FDataField};
- __property Db::TDataSet* DataSet = {read=FDataSet, write=SetDataSet};
- public:
- /* TQRCustomRichText.Create */ __fastcall virtual TQRDBRichText(Classes::TComponent* AOwner) : Qrctrls::
- TQRCustomRichText(AOwner) { }
- /* TQRCustomRichText.Destroy */ __fastcall virtual ~TQRDBRichText(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRDBRichText(HWND ParentWindow) : Qrctrls::TQRCustomRichText(
- ParentWindow) { }
-
- };
-
- enum TQRCalcOperation { qrcSum, qrcCount, qrcMax, qrcMin, qrcAverage };
-
- class DELPHICLASS TQRDBCalc;
- class PASCALIMPLEMENTATION TQRDBCalc : public Qrctrls::TQRExpr
- {
- typedef Qrctrls::TQRExpr inherited;
-
- private:
- System::AnsiString FDataField;
- Db::TDataSource* FDataSource;
- TQRCalcOperation FOperation;
- Quickrpt::TQRBand* FResetBand;
-
- protected:
- System::AnsiString __fastcall GetPrintMask(void);
- void __fastcall SetDataField(System::AnsiString Value);
- void __fastcall SetOperation(TQRCalcOperation Value);
- void __fastcall SetPrintMask(System::AnsiString Value);
-
- __published:
- __property System::AnsiString DataField = {read=FDataField, write=SetDataField};
- __property Db::TDataSource* DataSource = {read=FDataSource, write=FDataSource};
- __property OnPrint ;
- __property TQRCalcOperation Operation = {read=FOperation, write=SetOperation, nodefault};
- __property ParentFont ;
- __property System::AnsiString PrintMask = {read=GetPrintMask, write=SetPrintMask};
- __property Quickrpt::TQRBand* ResetBand = {read=FResetBand, write=FResetBand};
- public:
- /* TQRExpr.Create */ __fastcall virtual TQRDBCalc(Classes::TComponent* AOwner) : Qrctrls::TQRExpr(AOwner
- ) { }
- /* TQRExpr.Destroy */ __fastcall virtual ~TQRDBCalc(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TQRDBCalc(HWND ParentWindow) : Qrctrls::TQRExpr(ParentWindow
- ) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Qrctrls */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Qrctrls;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Qrctrls
-